class Scene_Factory
  @tables = []
  def initialize(type)
    case type
      when 0
        @tables = Array.new
        @tables.push(ItemRecipe.new(3))
        @tables.push(ItemRecipe.new(4))
        @tables.push(ItemRecipe.new(5))
        @tables.push(ItemRecipe.new(6))
      when 1
      when 2
    end
  end
  def main
    GlobalMethods.addLog("Scene_Factory initialize")
    @command_window = Window_Factory.new(@tables)
    @command_window.active = true
    Graphics.transition
    # Main loop
    loop do
      # Update game screen
      Graphics.update
      # Update input information
      Input.update
      if !@command_window.update
        break
      end
    end
    dispose
    Graphics.freeze
  end
  def dispose
    Input.update
    @command_window.dispose
    # Play cancel SE
    $game_system.se_play($data_system.cancel_se)
    # Switch to map screen
    $scene = Scene_Map.new
  end
end
